home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d22
/
getrom.arc
/
ROMSAVXT.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-09-30
|
354 b
|
29 lines
#include <stdio.h>
#include <stdlib.h>
main()
{
FILE *stream;
unsigned int c;
long x;
char *d;
/* starting address of xt rom */
d = 0xf0006000;
/* size of xt rom */
x = 0xa000;
/* open the file in binary mode! */
stream = fopen("xtrom","wb");
while (x > 0)
{
c = *d;
putc(c,stream);
*d++;
x--;
}
fclose(stream);
}